<template>
	<view  class="doc-info-zj">
		<view class="doc-info-zj-IDcard">
			<text class="doc-info-zj-IDcardTitle">身份证件</text>
			<view class="line"></view>
			<view class="doc-info-zj-IDcardcon IDcardcon-al">
				<view class="doc-info-zj-IDcardconItem">
					<image :src="imagea" mode="widthFix"></image>
				</view>
				<view class="doc-info-zj-IDcardconItem">
					<image :src="imageb" mode="widthFix"></image>
				</view>
			</view>
		</view>
		<view class="doc-info-zj-IDcard other">
			<text class="doc-info-zj-IDcardTitle">证书图片</text>
			<view class="line"></view>
			<view class="doc-info-zj-IDcardcon">
				<view class="doc-info-zj-zsItem" v-if="imagec.length>0" v-for="(item,index) in imagec" :key="index">
					<image :src="item" ></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import app from '../../App.vue'
	 export default {
	    data() {
	      return {
			  imagea:'',
			  imageb:'',
			  imagec:[]
			}
	    },
		onLoad(options) {
			this.getinfo()
		},
	    methods: {
			getinfo(){
				let that = this
				app.post('api/user/index',{},'get').then(res=>{
					if(res.code == 1){
						console.log(res.data.id_no1_image)
						that.imagea = res.data.id_no1_image
						that.imageb = res.data.id_no2_image
						that.imagec = res.data.cert_images
					}else{
						uni.showToast({
							title: res.msg,
							icon: 'none',
							mask: true
						})
					}
				}).catch(err=>{
					uni.showToast({
						title: err.msg,
						icon: 'none',
						mask: true
					})
				})
			}
	    }
	  }
</script>

<style>
	@import url("../../common/docinfo.css");
</style>
